# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xf86-video-vmware
pkgver=13.3.0
pkgrel=1
pkgdesc="X.org VMWare video driver"
url="https://xorg.freedesktop.org"
arch="x86 x86_64"
license="MIT"
subpackages="$pkgname-doc"
makedepends="xorg-server-dev libdrm-dev	libxi-dev eudev-dev util-macros
	xorgproto"
source="https://www.x.org/releases/individual/driver/xf86-video-vmware-$pkgver.tar.bz2
	fix-old-cpp-macros.patch
	"

build() {
	export LDFLAGS="$LDFLAGS -Wl,-z,lazy"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
	install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}

sha512sums="c318de893cae7b2b11e11c1b389ee47478b7c8d1f52c27099dbe453efec28f3e9da449217307a8c2251999eada66312f766996be1a6ead413b8b6dedc42c68ca  xf86-video-vmware-13.3.0.tar.bz2
4598e64e71b9a2ddd6fd2b664b63fcea96e4a24b116588af92d5cf973028612055ccb70cd27d0fd34016fdd9d03e9248c39a195f9324e05e593ba3ec26d4a6d8  fix-old-cpp-macros.patch"
